Running programs from the command line

Nina Norgren

Programs

  • All commands so far are technically programs on their own.

  • ls, cat, head, etc

  • Other programs can also be installed and run from the command line

    • notepad
    • requires a graphical interface (not in WSL2, but works in CMD)

Package Management in Linux

  • Package management tools simplify software installation and maintenance

  • APT (Advanced Package Tool) is a package management system used in Debian-based distributions

Package Management in Linux

  • sudo apt-get install - Install a specific package
sudo apt install firefox

sudo: grants permission to make changes on your computer. Ensures necessary authority to modify system settings and files. Requires your password

Running programs

  • What does a certain program do?

  • unzip - ?

unzip -h

Running programs

  • What does a certain program do?

  • unzip - ?

unzip -h

Use command line option -h

Running programs

  • What does a certain program do?

  • unzip - unpack compressed archived

unzip -h

Running programs

  • Using command line options
unzip my_compressed_files.zip -d my_files/